package com.mofang.ticketing.common.core.constant;

/**
 * 安全相关常量定义
 *
 * @author LGC
 */
public interface SecurityConstants {
    /**
     * 认证请求头key
     */
    String AUTHORIZATION_KEY = "Authorization";

    /**
     * JWT令牌前缀
     */
    String JWT_PREFIX = "Bearer ";

    /**
     * JWT过期时间 单位秒 1*24*60*60
     */
    Long JWT_EXPIRATION = 86400L;

    /**
     * JWT加密秘钥
     */
    String JWT_SECRET = "security-1314520-secret";

    /**
     * Basic认证前缀
     */
    String BASIC_PREFIX = "Basic ";

    /**
     * JWT载体key
     */
    String JWT_PAYLOAD_KEY = "payload";

    /**
     * JWT ID 唯一标识
     */
    String JWT_JTI = "jti";

    /**
     * JWT ID 唯一标识
     */
    String JWT_EXP = "exp";
    /**
     * JWT存储权限前缀
     */
    String AUTHORITY_PREFIX = "role_";
    /**
     * JWT存储权限属性
     */
    String JWT_AUTHORITIES_KEY = "authorities";


}
